<template>
    <div>
        <van-nav-bar title="约健联盟" fixed @click-right="onClickRight">
          <van-icon name="search" size="20" slot="right"/>
        </van-nav-bar>
    </div>
</template>

<script>
export default {
  name: 'top-bar',
  methods: {
    onClickRight () {
      this.$toast('sreach')
      //   TODO: sreach
    }
  }
}
</script>

<style scoped>
.van-nav-bar{
    border-bottom: 1px solid #ccc;
}
</style>
